@(name: String, value: Option[java.util.Date])
@import gitbucket.core.view.helpers
<div id="@name" class="input-append date" data-date-format="yyyy-mm-dd" data-date="@value.map(helpers.date)">
  <input class="span2" name="@name" type="text" readonly="" value="@value.map(helpers.date)" size="16"/>
  <span class="add-on"><i class="icon-calendar"></i></span>
</div>
<script>
$(function(){
  $('#@name').datepicker();
});
</script>
